package apple.p2;

/**
 * @author Lenovo
 */
public class StringCompareEmp{
    public static void main(String[] args){
        String str = "Hello World";
        String anotherString = "hello world";

        System.out.println( str.compareTo(anotherString) );
        System.out.println( str.compareToIgnoreCase(anotherString) );
        System.out.println( str.compareTo(((Object) str).toString()));
    }
}
